const app = getApp()
Page({
  data:{
    my_money_price:0,
  },
  onLoad:function(){
   
   
  },
  onShow:function(){
    var that = this;
    var openid = app.globalData.userInfo.open_id;
   
          wx.request({
            url: app.globalData.apiUrl+'/api/user/money',
            data: {openid:openid},
            method: 'GET',
            dataType: 'json',
            success: function(res) {
              console.log(res)
              that.setData({my_money_price:res.data.money})
            },
            fail: function(res) {},
            complete: function(res) {},
          })
   
     
    
  }
})